<template>
  <div id="login">
    <p class="quxiao" is="router-link" to="/user" tag="p"><van-icon name="cross" /></p>
    <h1>亲，欢迎登陆</h1>
    <p class="lijizuce"><span>没有淘宝账户？</span><a href="">立即注册</a></p>
    <div class="shouji">
      <form action="/user" @submit="onSubmit">
      <input type="number" placeholder="请输入手机号码" v-model="tel">
      <p><button>确认</button></p>
      </form>
    </div>

    <div class="more">
      <p class="p1">支付宝快捷登录</p>
      <p class="p2">更多选项</p>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      tel: '',
      pattern1: /^1[3456789]\d{9}$/
    }
  },
  methods: {
    onSubmit () {
    }
  }
}
</script>

<style lang="scss" scoped>
#login {
  width: 100%;
  height: 100%;
  padding: 5%;
  box-sizing: border-box;

  .quxiao {
    height: 10%;
    font-size: 30px;
    font-weight: 300;
    margin-bottom: 20%;
  }

  h1 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 4%;
  }

  .lijizuce {
    font: 1em sans-serif;
    margin-bottom: 10%;

    span {
      color: #ccc;
    }
    a {
      text-decoration: none;
      color: #f40;
    }
  }

  .shouji {
    width: 100%;
    height: 35%;
    margin-bottom: 25%;

    form {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-around;

      input {
        display: block;
        height: 38px;
        outline: none;
        border-bottom: 1px solid #ccc;
        padding: 0;
        caret-color: orange;
        font-size: 20px;
      }

      p {
        width: 80%;
        height: 20%;
        text-align: center;
        margin-left: 10%;
        background-color: orange;
        border: 1px solid #ccc;
        border-radius: 20px;
        font-size: 18px;
        font-weight: 500;
        color: #fff;

        button {
          display: inline-block;
          width: 100%;
          height: 100%;
          line-height: 100%;
        }
      }
    }
  }

  .more {
    width: 100%;
    height: 15%;
    display: flex;
    font-size: 12px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}
</style>>
